package com.example.shiXun.service;

import com.alibaba.fastjson.JSONArray;
import com.example.shiXun.base.result.Results;
import com.example.shiXun.domain.SysPermission;

import java.util.List;

public interface PermissionService {
    Results<JSONArray> listAllPermission();

    Results<SysPermission> listByRoleId(Integer intValue);

    Results<SysPermission> getMenuAll();

    Results<SysPermission> save(SysPermission permission);

    Results<SysPermission> updatePermission(SysPermission permission);

    Results delete(Integer id);

    SysPermission getPermissionById(Integer id);

//    List<SysPermission> getMenu();

    Results<SysPermission> getMenu(Long userId);
}
